local extension = Package:new("huiwan1")
extension.extensionName = "king"
local U = require "packages/utility/utility"

Fk:loadTranslationTable{
    ["huiwan1"] = "会玩1",
  }

  local ak_huiwan = fk.CreateTriggerSkill{
    name = "ak_huiwan",
    events = {fk.GameStart},
    frequency = Skill.Compulsory,
    can_trigger = function(self, event, target, player, data)
      if not player:hasSkill(self) then return false end
      local room = player.room
      return player:hasEmptyEquipSlot(Card.SubtypeWeapon) and
      room:getCardArea(U.prepareDeriveCards(room, {{"crossbow", Card.Diamond, 2}}, "ak_derivecards")[1]) == Card.Void
    end,
    on_use = function(self, event, target, player, data)
      local room = player.room
      room:moveCardIntoEquip(player, U.prepareDeriveCards(room, {{"crossbow", Card.Diamond, 2}}, "ak_derivecards"), self.name)
    end,
  }
  Fk:loadTranslationTable{
  ["ak_huiwan"] = "会玩",
  [":ak_huiwan"] = "锁定技，游戏开始时，你将【诸葛连弩】置入你的装备区。",
  ["crossbow"] = "诸葛连弩",

}

local ak__jvshou = General(extension, "ak__jvshou", "qun", 2, 3)
ak__jvshou.shield = 3
ak__jvshou:addSkill("m_ex__jianying")
ak__jvshou:addSkill("shibei")
ak__jvshou:addSkill(ak_huiwan)
Fk:loadTranslationTable{
    ["ak__jvshou"] = "会玩沮授",
}
local ak__liuzan = General(extension, "ak__liuzan", "wu", 4)
ak__liuzan:addSkill("fenyin")
ak__liuzan:addSkill(ak_huiwan)
Fk:loadTranslationTable{
  ["ak__liuzan"] = "会玩留赞",
}
local ak__luxun = General(extension, "ak__luxun", "wu", 3)
ak__luxun:addSkill("xiongmu")
ak__luxun:addSkill("zhangcai")
ak__luxun:addSkill("ruxian")
ak__luxun:addSkill(ak_huiwan)
Fk:loadTranslationTable{
    ["ak__luxun"] = "会玩武陆逊",
}
local ak__chenshi = General(extension, "ak__chenshi", "shu", 4)
ak__chenshi:addSkill("qingbei")
ak__chenshi:addSkill(ak_huiwan)
Fk:loadTranslationTable{
  ["ak__chenshi"] = "会玩陈式",
}
local ak__xujing = General(extension, "ak__xujing", "shu", 3)
ak__xujing:addSkill("shangyu")
ak__xujing:addSkill("caixia")
ak__xujing:addSkill(ak_huiwan)
Fk:loadTranslationTable{
    ["ak__xujing"] = "会玩许靖",
}

local ak__machao = General:new(extension, "ak__machao", "shu", 4)
ak__machao:addSkill("mashu")
ak__machao:addSkill("mou__tieji")
ak__machao:addSkill(ak_huiwan)
Fk:loadTranslationTable{
    ["ak__machao"] = "会玩马超",
}
local ak__simashi = General(extension, "ak__simashi", "wei", 3)
ak__simashi:addSkill("sanshi")
ak__simashi:addSkill("zhenrao")
ak__simashi:addSkill("chenlue")
ak__simashi:addSkill(ak_huiwan)
Fk:loadTranslationTable{
    ["ak__simashi"] = "会玩司马师",
}
local ak__huanggai = General:new(extension, "ak__huanggai", "wu", 4)
ak__huanggai:addSkill("kurou")
ak__huanggai:addSkill(ak_huiwan)
Fk:loadTranslationTable{
    ["ak__huanggai"] = "会玩黄盖",
}
local ak__guanyu = General:new(extension, "ak__guanyu", "shu", 4)
ak__guanyu:addSkill(ak_huiwan)
ak__guanyu:addSkill("ex__wusheng")
ak__guanyu:addSkill("ex__yijue")
Fk:loadTranslationTable{
    ["ak__guanyu"] = "会玩关羽",
}
local ak__zhangchunhua = General(extension, "ak__zhangchunhua", "wei", 3, 3, General.Female)
ak__zhangchunhua:addSkill("jueqing")
ak__zhangchunhua:addSkill("shangshi")
ak__zhangchunhua:addSkill("jianmie")
ak__zhangchunhua:addSkill(ak_huiwan)
Fk:loadTranslationTable{
    ["ak__zhangchunhua"] = "会玩张春华",
}
local ak__zhangliao = General(extension, "ak__zhangliao", "qun", 4)
ak__zhangliao:addSkill("yuxi")
ak__zhangliao:addSkill("porong")
ak__zhangliao:addSkill(ak_huiwan)
Fk:loadTranslationTable{
    ["ak__zhangliao"] = "会玩张辽",  --先随便弄个前缀，之后再改
}

local ak__zhuling = General(extension, "ak__zhuling", "wei", 4)
ak__zhuling:addSkill("os__zhanyi")
ak__zhuling:addSkill(ak_huiwan)
Fk:loadTranslationTable{
    ["ak__zhuling"] = "会玩朱灵",
}

local ak__zhenji = General(extension, "ak__zhenji", "wei", 3, 3, General.Female)
ak__zhenji:addSkill("ex__luoshen")
ak__zhenji:addSkill("qingguo")
ak__zhenji:addSkill(ak_huiwan)
Fk:loadTranslationTable{
    ["ak__zhenji"] = "会玩甄姬",
}
local ak__sunquan = General(extension, "ak__sunquan", "wu", 4)
ak__sunquan:addSkill("ex__zhiheng")
ak__sunquan:addSkill("ex__jiuyuan")
ak__sunquan:addSkill(ak_huiwan)
Fk:loadTranslationTable{
  ["ak__sunquan"] = "会玩孙权",
}
local ak__luotong = General:new(extension, "ak__luotong", "wu", 4)
ak__luotong:addSkill("qinzheng")
ak__luotong:addSkill(ak_huiwan)
Fk:loadTranslationTable{
  ["ak__luotong"] = "会玩骆统",
}
local ak__gongsunzan = General(extension, "ak__gongsunzan", "qun", 4)
ak__gongsunzan:addSkill(ak_huiwan)
ak__gongsunzan:addSkill("yicong")
ak__gongsunzan:addSkill("qiaomeng")
Fk:loadTranslationTable{
  ["ak__gongsunzan"] = "会玩公孙瓒",
}
local ak__gundam = General(extension, "ak__gundam", "god", 1)
ak__gundam:addSkill("gundam__juejing")
ak__gundam:addSkill("gundam__longhun")
ak__gundam:addSkill(ak_huiwan)
Fk:loadTranslationTable{
  ["ak__gundam"] = "会玩高达",
}
local ak__wenyang = General(extension, "ak__wenyang", "wu", 4)
ak__wenyang:addSkill(ak_huiwan)
ak__wenyang:addSkill("quedi")
ak__wenyang:addSkill("chongjian")
ak__wenyang:addSkill("mobile__choujue")
Fk:loadTranslationTable{
  ["ak__wenyang"] = "会玩吴文鸯",
}

return extension  